﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Timers;

namespace PIP.Shared
{
    public static class DataProcessor
    {
        public static DataManager Manager { get; set; }
        static DataProcessor()
        {
        }

        public static void CreateDataManager(Bitmap bitmap, Int32 itemWidth, Int32 itemHeight)
        {
            DisposeDataManager();
            Manager = new DataManager(bitmap, itemWidth, itemHeight);
        }

        public static void DisposeDataManager()
        {
            if (Manager != null)
                Manager.Dispose();
        }
    }
}
